/* 公共接口 */
import request from "@/utils/request.js";

/* 车辆列表 */
export function VehicleInfo(data) {
	return request.post('VehicleInfo/PageList', data, {
		noAuth: true
	});
}
/* 上传车辆认证 */
export function saveVehicleInfo(data) {
	return request.post('VehicleInfo', data, {
		noAuth: true
	});
}
/* 设置默认车辆 */
export function setDef(uid,vid) {
	return request.put(`VehicleInfo/setDef/${uid}/${vid}`, {}, {
		noAuth: true
	});
}
/* 删除 用户车辆 */
export function deleteVehicles(data) {
	return request.delete('VehicleInfo/'+data, {
		noAuth: true
	});
}

// 免费活动 返现记录列表
export function FreeReturnLogList(data) {
	return request.post('FreeReturnLog/pagelist', data, {
		noAuth: true
	});
}